See how to create a custom limit and use it in a license.
Create an editor for the custom limit used by the Advanced License Editor.
As an alternative to creating a custom limit you can use the built in Script limit that permits you to execute very basic validation routines.